﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLLWeb
{
    public partial  class qgzx_admin:IBLL.Iqgzx_adminBLL
    {
        public MODEL.qgzx_admin Login(string strName, string strPwd)
        {
            //调用业务层方法 根据登陆名查询
            MODEL.qgzx_admin admin = base.GetListBy(p => p.LoginName == strName).Select(u=>u.ToPOCO()).SingleOrDefault();
            //判断是否登陆成功
            if (admin != null && admin.Password == strPwd)//Common.DataHelper.MD5(strPwd))
            {
                return admin;
            }
            return null;
        }
    }
}
